import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RoleEntity } from '../role/entities/role.entity';
import { AccountController } from './controllers/account/account.controller';
import { AccountEntity } from './entities/account.entity';
import { AccountService } from './services/account/account.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([AccountEntity], {
      name: 'nest_test1',
      database: 'nest_test1',
      type: 'mysql',
    }),
    TypeOrmModule.forFeature([RoleEntity], {
      name: 'nest_test2',
      database: 'nest_test2',
      type: 'mysql',
    }),
  ],
  controllers: [AccountController],
  providers: [AccountService],
})
export class AccountModule {}
